<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html id="html" xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title><?php echo $this->title; ?></title>
<meta name="keywords" content="<?php echo $this->keywords; ?>" />
<meta name="description" content="<?php echo $this->description; ?>" />

<link rel=stylesheet type=text/css href="<?php echo $this->baseUrl('css/index.css');?>" />
<link rel=stylesheet type=text/css href="<?php echo $this->baseUrl('css/common.css');?>" />
<link rel=stylesheet type=text/css href="<?php echo $this->baseUrl('css/colorbox.css');?>" />
<script type="text/javascript" src="<?php echo $this->baseUrl('js/jquery-1.7.js');?>"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl('js/base64.js');?>"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl('js/function.js');?>"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl('js/taobao.js');?>"></script>
<script type="text/javascript" charset="utf-8" src="<?php echo $this->baseUrl('js/jquery.lazyload.js');?>"></script>

<style type="text/css"> 
.container, .container *{margin:0; padding:0;}
.container{width:500px; height:245px; overflow:hidden;position:relative;}
.slider{position:absolute;}
.slider li{ list-style:none;display:inline;}
.slider img{ width:500px; height:245px; display:block;}
.slider2{width:5000px;}
.slider2 li{float:left;}
.num{ position:absolute; right:5px; bottom:5px;}
.num li{
	float: left;
	color: #FF7300;
	text-align: center;
	line-height: 16px;
	width: 16px;
	height: 16px;
	font-family: Arial;
	font-size: 12px;
	cursor: pointer;
	overflow: hidden;
	margin: 3px 1px;
	border: 1px solid #FF7300;
	background-color: #fff;
}
.num li.on{
	color: #fff;
	line-height: 21px;
	width: 21px;
	height: 21px;
	font-size: 16px;
	margin: 0 1px;
	border: 0;
	background-color: #FF7300;
	font-weight: bold;
}
</style>
<script language="javascript" >
$(function(){
	 var len2  = $("#idNum2 > li").length;
	 var index2 = 0;
	 $("#idNum2 li").mouseover(function(){
		index2  =   $("#idNum2 li").index(this);
		showImg2(index2);
	});	

	 $('#idTransformView2').hover(function(){
			  if(MyTime2){
				 clearInterval(MyTime2);
			  }
	 },function(){
			  MyTime2 = setInterval(function(){
				showImg2(index2)
				index2++;
				if(index2==len2){index2=0;}
			  } , 4000);
	 });
	 //自动开始
	 var MyTime2 = setInterval(function(){
		showImg2(index2)
		index2++;
		if(index2==len2){index2=0;}
	 } , 4000);
})
function showImg2(i){
		$("#idSlider2").stop(true,false).animate({left : -500*i},1000);
		 $("#idNum2 li")
			.eq(i).addClass("on")
			.siblings().removeClass("on");
}
</script>
<script language="javascript">
$.ajaxSetup ({
    cache: false //关闭AJAX相应的缓存
});
$(function(){
    $('.checkLogin').click(function(){
		url=$(this).attr('href');
		var ddusername='<?=$_SESSION["duoduouser"]?>';
		var img=$(this).parent('p').parent('li').find('img').attr('src');
		var price=$(this).parent('p').parent('li').find('.hot_goods_list_num').find('b').html();
		var fx=$(this).parent('p').parent('li').attr('fanli');
		$('#layer_goods').show();
		$('#jump_pic').attr('src',img);
		$('#jump_href').attr('href',url);
		$('.jump_price').text(price+'元');
		$('#jump_back').text(fx+'元');
	    if(ddusername!=''){
			window.open(url);
		}
		else{
		    $('.jumpbox').show();
		}
	return false;
	});
	
	$('#jump_href,#jumpclose').click(function(){
	    $('.jumpbox').hide();
	});
});
</script>
<SCRIPT language=JavaScript>
/*定义js路径*/
var contextPath = "http://<?=URL?>/";
<!--是否开启伪静态-->
var rewrite = <?=WJT?>;
<!--是否开启图片伪本地化-->
var taopicopen = 1;
</SCRIPT>
</head>
<body>
<div id="header">
	<div style="width:960px; height:auto; margin:0 auto;">
		<span class="header_left"><a href="<?php echo $navheadurl ?>"><?php echo WEBNICK?>首页</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="#dd" onclick="AddFavorite('<?=$navheadurl?>','<?=WEBNICK?>')">收藏本站</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?=$navheadurl?>comm/shortcut.php">快捷桌面</a> 
		&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?=$navheadurl?>sitemap.php" >淘宝分类</a> 
		<?php if(CHA=='1'){?>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?=$navheadurl?>cha" >测试返现</a><?php }?>
	    <?php if(FXBOPEN=='1'){?>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?=$navheadurl?>fanxianbao" >返现宝</a><?php }?> 
	    </span>
		<span class="header_right"><?php 
			if($_SESSION["duoduouser"]!=NULL)
			{
				echo "&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"".$navheadurl."user/center.php\">账户：".$_SESSION["duoduouser"]."</a> <a href=\"".$navheadurl."user/msg_list.php?act=in\">".$msgsrc."</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"".$navheadurl."user/mingxilist.php?act=in\">账户余额：".$money." <img src=\"".$navheadurl."template/".MOBAN."/images/money2.gif\" border=\"0\"  alt=\"账户明细\" /></a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"".$navheadurl."user/exit.php\">退出</a>";
			}
			else
			{
				echo "&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"".$navheadurl."user/register.php\">注册</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"".$navheadurl."user/login.php\">登录</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"".$navheadurl."user/getpassword.php\">找回密码</a>";
			}
		?></span>
	</div>
</div>

<div class="navtop">
	<div class="logo"><A href="<?=$navheadurl?>index<?=$end?>" <?php if($tag=='index'){echo "class=current";}?> title="网上购物，从这里开始" ><img src="<?php echo $this->baseUrl('images/logo.gif');?>" /></A></div>
	
	<?php if($tag=='tg'){?>
	<div style="float:left; margin-left:15px;">
	<div class="tuangouflsy_logo_span2">
	       <span class="tuangouflsy_logo_span3" style="margin-bottom:3px;position:relative;"><?=$cur_city?></span>
	       <span class="tuangouflsy_logo_span3" style="position:relative; z-index:999;"><input class="submit1" type="button" name="button" id="button" value="" onclick="open_city(this)" />
	
	<div class="tuangouflsy_pf" style="display:none;" onclick="clickDiv(this)" id="div"><span class="tuangouflsy_pf_guanbi"><a href="javascript:void(0)" onclick="close_city()">关闭</a></span>
	   <div class="tuangouflsy_pf_zhongdian">
	     <ul>
	       <li>
	          <span class="tuangouflsy_pf_span1">核心城市</span>
	          <span class="tuangouflsy_pf_span2">
	          <?php foreach($city_sort_arr as $k=>$v){?>
	          	<span class="tuangouflsy_pf_span3"><a href="tg<?=$url_head_city_id?><?=$k?><?=$url_end?>"><?=$v?></a></span>
	          <?php }?>
	          </span>
	       </li>
	        <li style="margin-bottom:10px;"><span class="textcolor1" >请按照拼音首字母来选择城市</span></li>
	     </ul>
	      <div style="clear:both"></div>
	   </div>
	   <div class="tuangouflsy_pf_xuanqu">
	      <div class="tuangouflsy_pf_yinwen">
	      <a href="javascript:void(0)" onclick="changeCity('a')" id="city_a_a" class="sekuai">A</a>
	      <a href="javascript:void(0)" onclick="changeCity('b')" id="city_a_b" class="sekuai">B</a>
	      <a href="javascript:void(0)" onclick="changeCity('c')" id="city_a_c" class="sekuai">C</a>
	      <a href="javascript:void(0)" onclick="changeCity('d')" id="city_a_d" class="sekuai">D</a>
	      <a href="javascript:void(0)" onclick="changeCity('e')" id="city_a_e" class="sekuai">E</a>
	      <a href="javascript:void(0)" onclick="changeCity('f')" id="city_a_f" class="sekuai">F</a>
	      <a href="javascript:void(0)" onclick="changeCity('g')" id="city_a_g" class="sekuai">G</a>
	      <a href="javascript:void(0)" onclick="changeCity('h')" id="city_a_h" class="sekuai">H</a>
	      <a href="javascript:void(0)" onclick="changeCity('j')" id="city_a_j" class="sekuai">J</a>
	      <a href="javascript:void(0)" onclick="changeCity('k')" id="city_a_k" class="sekuai">K</a>
	      <a href="javascript:void(0)" onclick="changeCity('l')" id="city_a_l" class="sekuai">L</a>
	      <a href="javascript:void(0)" onclick="changeCity('m')" id="city_a_m" class="sekuai">M</a>
	      <a href="javascript:void(0)" onclick="changeCity('n')" id="city_a_n" class="sekuai">N</a>
	      <a href="javascript:void(0)" onclick="changeCity('p')" id="city_a_p" class="sekuai">P</a>
	      <a href="javascript:void(0)" onclick="changeCity('q')" id="city_a_q" class="sekuai">Q</a>
	      <a href="javascript:void(0)" onclick="changeCity('r')" id="city_a_r" class="sekuai">R</a>
	      <a href="javascript:void(0)" onclick="changeCity('s')" id="city_a_s" class="sekuai">S</a>
	      <a href="javascript:void(0)" onclick="changeCity('t')" id="city_a_t" class="sekuai">T</a>
	      <a href="javascript:void(0)" onclick="changeCity('w')" id="city_a_w" class="sekuai">W</a>
	      <a href="javascript:void(0)" onclick="changeCity('x')" id="city_a_x" class="sekuai">X</a>
	      <a href="javascript:void(0)" onclick="changeCity('y')" id="city_a_y" class="sekuai">Y</a>
	      <a href="javascript:void(0)" onclick="changeCity('z')" id="city_a_z" class="sekuai">Z</a>      
	      </div>
	      <?php foreach($city_word_arr as $k=>$v){?>
	      <div id="city_span_<?=$k?>" class="tuangouflsy_pf_chengshi" >
	          <?php foreach($v as $key=>$val){?>
	      		<a href="tg<?=$url_head_city_id?><?=$val?><?=$url_end?>" ><?=$city_sort_arr[$val]?></a>
	          <?php }?>
	      </div>
	      <?php }?>
	            <div style="clear:both"></div>
	   </div>
	</div>
	       </span>
	       <div style="clear:both"></div>
	    </div>
	</div>
	<?php }?>
	<div class="searchbox">
	<div style="width:525px; text-align:left">
	<div class="s-nav">
	  <a class="y" id="shangpin" value="输入您想要的宝贝" s="<?=$navheadurl?>list.php" name="q">宝贝</a>
	  <a class="n" id="zhanggui" value="输入您想找的掌柜" s="<?=$navheadurl?>shop.php" name="nick">掌柜</a>
	  <a class="n" id="shangcheng" value="输入您想要的商城" s="<?=$navheadurl?>malllist.php" name="mall">商城</a>
	  <a class="n" id="fenxiang" value="输入您想找的分享" s="<?=$navheadurl?>baobeilist.php" name="key">分享</a>
	  <?php if(TGOPEN==1){?>
	  <a class="n" id="tuan" value="输入您想要搜的团购" s="<?=$navheadurl?>tg.php" name="keyword">团购</a>  
	  <?php }?>
	</div>
	<div class="clear"></div>
	<form class="box" name="formname" method="get" action="<?=$navheadurl?>list.php" style="float:left; " onsubmit="return searchForm()">
	  <span class="box-middle"><input name="q" onfocus="this.value='';keyflag=false;" type="text" id="s-txt" class="s-txt" value="输入您想要的宝贝" /><input type="submit" class="sbutton" value="" /></span>
	  <span class="box-right"></span>
	</form>
	</div>
	</div>
	</div>	

<div id="tab" >	 		
<?php
	foreach ($this->navlist as $entry) { 
	    if($entry->tag == $this->tag) $class="class='nowtab'";
		else $class = "class='linktab'";
		if($entry->target ==0) $target = "target='_self'";
		elseif($entry->target == 1) $target="target='_blank'";
		$link="<a href='". $this->escape($entry->link)."' ".$target."><span ".$class.">". $this->escape($entry->name)."</span></a>";
	    $nav[]=$link;   
    }
    $nav_link = implode('<img class="topmargin" src="'.$this->baseUrl('images/sline.png').'" />',$nav);
    echo $nav_link;
?>   
</div>

<div class="index">  
<?php 
if(AD(1)){?>
<div id="ad1"><?=AD(1)?></div>
<?php }?>
	<div class="mall"> 
<!-- 全部返现商家 Start -->
<div class="menu templateNeedDelete">
<H2><SPAN class=exp>全部返现商家</SPAN></H2>
<UL>
  <?php
  while ($row1 = mysql_fetch_array($rs_malltype)) {?>
  <LI onmouseover="this.className='on';" onmouseout="this.className='';">
    <H3><EM><?=$row1['typename']?></EM></H3>
	<P><?php 
	$i=0;
	foreach ($allmalllist as $row2){
		if($row2["catid"]==$row1["typecode"]&&$i<2){
			echo "<a href=\"mall".$url_head_id.$row2["id"].$url_end."\">".$row2["name"]."</a>&nbsp;&nbsp;";
			$i++;
		}
	}
	?></P>
    <DIV class=menu_show onmouseover="this.parentNode.className='on';" onmouseout="this.parentNode.className='';">
      <CITE></CITE>
      <DL>
        <DT><STRONG><?=$row1['typename']?>所有商家：</STRONG></DT>
        <?php 
		$i=0;
		foreach ($allmalllist as $row3){
			if($row3["catid"]==$row1["typecode"]&&$i<20){
				echo "<DD><a href=\"mall".$url_head_id.$row3['id'].$url_end."\" target=\"_blank\">".$row3['name']."（最高返".$row3['fan']."）</A></DD>";
				$i++;
			}
		}
		?>
        <div style="clear:both"></div>
      </DL>
    </DIV>
  </LI>
  <?php }?>  
</UL>
</div>
		<!-- 全部返现商家 End -->	
        <?php if(TGOPEN==1){?>	
		<div class="frame post" style="height:519px">
			<h2><span>团购商品</span></h2>
			<ul style="width:197px; overflow:hidden;">
				<?php
				while($row = mysql_fetch_array($tuan_goods))
				
				{?>
					<li class="tbdpleft">
						<div onMouseOver="this.className='tbdplist2left'" onMouseOut="this.className='tbdplist1left'" class="tbdplist1left">
						<div style="float:left; height:70px; width:70px; margin-top:5px; margin-left:5px;"><A href="tgview<?=$url_head_id?><?=$row['id']?><?=$url_end?>" target="_blank" class="nolink" title="进入<?php echo $row['nick'] ?>的店铺"><img src="<?=$row['image']?>" title="<?=$row['title']?>" style=" width:65px; height:65px"  /></a></div>
						<div style="float:left; margin-left:0px; height:70px; width:90px; line-height:20px; overflow:hidden; margin-top:3px;">
							<div style="width:120px; height:22px; line-height:22px; overflow:hidden; text-align:left"><A href="tgview<?=$url_head_id?><?=$row['id']?><?=$url_end?>" target="_blank" class="nolink"><?=$row['name']?></A></div>
							<div style="width:120px; height:22px; line-height:22px; overflow:hidden;text-align:left"><A href="tgview<?=$url_head_id?><?=$row['id']?><?=$url_end?>" target="_blank" class="nolink">最高返：<?=$row['fan']?></A></div>
							<div style="width:120px; height:22px; line-height:22px; overflow:hidden;text-align:left"><A href="tgview<?=$url_head_id?><?=$row['id']?><?=$url_end?>" target="_blank" class="nolink">团购价：<?=$row['price']?></A></div>
						</div>
						</div>
					</li>
				<?php }?>
			</ul>
		</div>
        <?php }else{?>
        <div class="frame service" style="clear:both">
			<h2>返现客服</h2>
			<p class="exp">返现过程遇到问题请联系</p>
			<p class="qq" style="height:45px;"><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<?=QQ?>&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:<?=QQ?>:46" alt="点击这里给我发消息" title="点击这里给我发消息"></a>
            			<a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid=<?=urlencode(MYUSERNICK)?>&site=cntaobao&s=1&charset=utf-8" ><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid=<?=urlencode(MYUSERNICK)?>&site=cntaobao&s=1&charset=utf-8" alt="点击这里给我发消息" /></a></p>
		</div>
		<!-- 返现服务专线 End --
		>
 		<!-- 广告位2 Start -->
		<div class="frame limit_time" style="border:0px;">
			<div id="ad2"><?=AD(2)?></div>
		</div>
        <?php }?>
		<div class="frame faq">
			<h2><span>常见问题</span></h2>
			<ul><?php while ($row = mysql_fetch_array($rs_article)) {?>
				<li class="template_module template_copy"><a href="read<?=$url_head_id?><?=$row['id']?><?=$url_end?>" target="_blank" class="template_mod" etype="innerHTML&href"><?=$row['title']?></a></li>
				<?php }?>
			</ul>
		</div>
		<!-- 常见问题 End --> 
	</div>
	
	<!-- main content Start -->
	<div class="main">
		<!-- 幻灯片 Start -->
			<div class="container" id="idTransformView2">
			  <ul class="slider slider2" id="idSlider2">
              <?php
			  foreach($slides_url as $k=>$v){?>
				<li><a href="<?=$slides_url[$k]?>" target="_blank" title="<?=$slides_title[$k]?>"><img src="upload/<?=$slides_pic[$k]?>" alt="<?=$slides_title[$k]?>"/></a></li>
			  <?php }?>
              </ul>
			  <ul class="num" id="idNum2">
              <?php
			  foreach($slides_url as $k=>$v){?>
				<li><?=$k+1?></li>
			  <?php }?>
			  </ul>
			</div>
		<!-- 幻灯片 End -->

		<!-- 推荐商家 Start -->
		<div class="mall_commend"> 
			<h2><span>推荐商家</span></h2>
			<div class="mall_content">
				<ul class="content_item" id="top_malls">
					<?php while ($row = mysql_fetch_array($rs_mall)) {?>
					<li class="template_module">
                    <div onMouseOver="this.className='tbdplist4'" onMouseOut="this.className='tbdplist3'" class="tbdplist3">
						<p class="picture"><a href="mall<?=$url_head_id?><?=$row['id']?><?=$url_end?>" target="_blank"><img src="upload/<?=$row['logo']?>" alt="<?=$row['name']?>" class="template_mod" width="113px" height="50px"></a></p>
						<p class="name template_mod" etype="mallid" mallid="10000">最高返<span><?=$row['fan']?></span></p></div>
					</li>
					<?php }?>
				</ul>
			</div>
			<p class="more_link template_module"><a href="malllist<?=$end?>" target="_blank" class="template_mod" etype="href&innerHTML">查看全部>></a></p>
		</div>
		<!-- 推荐商家 End -->
 		<!-- 淘宝热卖 Start -->
		<div class="use_fanli"> 
			<h2><span>淘宝热卖</span></h2>
			<div class="mall_content">
				<ul>
				<?php for($i = 0; $i < count($ListHot); $i++) {
				$hottitle=str_replace("'","",$ListHot[$i]["title"]);
				$hottitle=strip_tags($hottitle);
				//简易模式还是详细模式选择不同的链接地址
				if(WEBTYPE=='0'){
					$gourl="href=\"list.php?iid=".$ListHot[$i]["num_iid"]."\" target=\"_blank\"";
				}else{
					$gourl="href=\"view".$url_head_iid.encode_url($ListHot[$i]["num_iid"]).$url_end."\" target=\"_blank\"";
				}
				?>
					<li style="width:119px; border:1px solid #ddd; margin-left:3px;" fanli="<?=ck_fxje($ListHot[$i]["commission"],$_SESSION['dduserlevel'])?>">
						<p class="picture"><a <?=$gourl?>><SCRIPT language=javascript>setPic('<?php echo base64_encode($ListHot[$i]["pic_url"]."_310x310.jpg")?>',100,100,'<?php echo $hottitle ?>');</SCRIPT></a></p>
						<p class="name"><a <?=$gourl?>>淘宝价:<span class="hot_goods_list_num">￥<b><?php echo $ListHot[$i]["price"]; ?></b></span> 元</a></p>
						<p><a <?=$gourl?>>可返现:<span class="hot_goods_list_num"><b><? echo ck_fxje($ListHot[$i]["commission"],$_SESSION['dduserlevel'])?></b></span> 元</a></p>					
					</li>
				<?php } ?>
				</ul>
			</div>
			<p class="more_link template_module"><a href="list<?=$end?>" target="_blank" class="template_mod" etype="href&innerHTML">查看全部>></a></p>
		</div>
		<!-- 淘宝热卖 End -->

		<!-- 购物资讯 Start -->
		<div class="vip_sale"> 
			<h2><span class="exp">优惠促销</span></h2>
			<div class="mall_content">
				<ul class="content_item">
					<?php while ($row = mysql_fetch_array($pic_cuxiao)) {?>
					<li class="template_module">
						<p class="picture"><a href="cuxiao<?=$url_head_id?><?=$row['id']?><?=$url_end?>" target="_blank" class="template_mod" etype="href"><img src="<?=$row['pic']?>" alt="<?=$row['name']?>" class="artpic" etype="src"></a></p>
					</li>
					<?php }?>
				</ul>
				<ul class="content_text" style="">
                <?php while ($row = mysql_fetch_array($cuxiao)) {?>
					<li style="width:255px; overflow:hidden; line-height:20px; height:20px;"><div style="width:200px; height:20px; line-height:20px;"><a href="cuxiao<?=$url_head_id?><?=$row['id']?><?=$url_end?>" target="_blank" class="bluelink" etype="innerHTML&href">[<?=$row['mallname']?>] <?=$row['name']?></a></div>
					</li>
				<?php }?>
				</ul>
				<ul class="content_text templateNeedNull" id="content" style="display: none;"></ul>
 
			</div>
			<p class="more_link template_module"><a href="coupons<?=$end?>" target="_blank" class="template_mod" etype="href&innerHTML">查看全部>></a></p>
		</div>
		<!-- 购物资讯 End -->
 		<!-- 积分兑换 Start -->
		<div class="use_jifen"> 
			<h2><span>积分兑换</span></h2>
			<div class="mall_content">
				<ul>
                <?php while ($row = mysql_fetch_array($duihuan)) {?>
                    <li style="width:119px; border:1px solid #ddd; margin-left:3px; height:125px; padding-top:10px"><a href="huangou<?=$url_head_id?><?=$row['id']?><?=$url_end?>"><img src="<?=$row['pic']?>" alt="<?=$row['name']?>" border="0" style="width:100px; height:100px" /></a></br>
                    <a href="huangou<?=$url_head_id?><?=$row['id']?><?=$url_end?>"><?=$row['name']?></a>					
					</li>
                <?php }?>
				</ul>
			</div>
			<p class="more_link template_module"><a href="huan<?=$end?>" target="_blank" class="template_mod" etype="href&innerHTML">查看全部>></a></p>
		</div>
		<!-- 积分兑换 End -->
 
	</div>
	<!-- main content End -->
 
	<!-- side content Start -->
	<div class="side">
		   
		<!-- 返现引导 Start -->
		<div class="study">
			<div class="dostudy"><?php if($_SESSION["duoduouser"]!=''){?><a href="user/center.php" class="template_mod" etype="innerHTML&href">欢迎回来：<?=$_SESSION["duoduouser"]?></a><?php }else {?><a href="user/register.php" target="_blank" class="template_mod" etype="innerHTML&href">马上注册<?=WEBNICK?>会员</a><?php }?></div>
		</div>
		<!-- 返现引导 End -->
 
		<!-- 返现公告 Start -->
		<div class="frame notice">
			<h2><span>返现公告</span></h2>
			<ul>
			<?php while ($row = mysql_fetch_array($rs_gg)) {?>
				<li><div style="line-height:20px; height:20px; width:180px; overflow:hidden"><a href="read<?=$url_head_id?><?=$row['id']?><?=$url_end?>" target="_blank" class="template_mod" etype="innerHTML&href"><?=$row['title']?></a></div></li>
			<?php }?>
			</ul>
		</div>
		<!-- 返现公告 End -->
 
		
		<!-- 淘宝店铺 Start -->
		<div class="frame post">
			<h2><span>淘宝店铺</span></h2>
			<ul style="width:225px; overflow:hidden">
				<?php
				while($row3 = mysql_fetch_array($rs_shop))
				
				{?>
					<li class="tbdp">
						<div onMouseOver="this.className='tbdplist2'" onMouseOut="this.className='tbdplist1'" class="tbdplist1">
						<div style="float:left; height:70px; width:70px; margin-top:5px; margin-left:5px;"><A href="shop<?=$url_head_nick?><?php echo urlencode($row3['nick']) ?><?=$url_end?>" target="_blank" class="nolink" title="进入<?php echo $row3['nick'] ?>的店铺"><SCRIPT language=javascript>setPic('<?php echo base64_encode("http://logo.taobao.com/shop-logo".$row3['pic_path'])?>',65,65,'<?php echo $row3['title'] ?>');</SCRIPT></a></div>
						<div style="float:left; margin-left:0px; height:70px; width:120px; line-height:20px; overflow:hidden; margin-top:3px;">
							<div style="width:120px; height:22px; line-height:22px; overflow:hidden; text-align:left"><A href="shop<?=$url_head_nick?><?php echo urlencode($row3['nick']) ?><?=$url_end?>" target="_blank" class="nolink" title="进入<?php echo $row3['nick'] ?>的店铺">掌柜：<?=$row3['nick']?></A></div>
							<div style="width:120px; height:22px; line-height:22px; overflow:hidden;text-align:left"><A href="shop<?=$url_head_nick?><?php echo urlencode($row3['nick']) ?><?=$url_end?>" target="_blank" class="nolink" title="进入<?php echo $row3['nick'] ?>的店铺"><?php if($row3["type"]=="B"){echo "<img src=\"template/".MOBAN."/images/shangcheng.png\" alt=\"商城卖家\"  align=\"middle\">"; }else {echo " <img src=\"images/level_".$row3["level"].".gif\" align=\"absmiddle\" />";} ?></A></div>
							<div style="width:120px; height:22px; line-height:22px; overflow:hidden;text-align:left"><A href="shop<?=$url_head_nick?><?php echo urlencode($row3['nick']) ?><?=$url_end?>" target="_blank" class="nolink" title="进入<?php echo $row3['nick'] ?>的店铺">所在地：<?=$row3['city']?></A></div>
						</div>
						</div>
					</li>
				<?php }?>
			</ul>
		</div>
		<!-- 淘宝店铺 End -->
 		<!-- 购物资讯 Start -->
		<div class="frame notice">
			<h2><span>购物资讯</span></h2>
			<ul>
			<?php while ($row = mysql_fetch_array($rs_new_article)) {?>
				<li><div style="line-height:20px; height:20px; width:180px; overflow:hidden"><a href="read<?=$url_head_id?><?=$row['id']?><?=$url_end?>" target="_blank" class="template_mod" etype="innerHTML&href"><?=$row['title']?></a></div></li>
			<?php }?>
			</ul>
		</div>
		<!-- 购物资讯 End -->
 
	</div>
	<!-- side content End -->
</div>
<div class="clear"></div>
<div class="yqlj"> 
	<div class="yqljtitle">友情链接:</div>
	<ul class="yqljlist">
	<?php while ($row = mysql_fetch_array($rs_yqlj)) {?>
		<li><a href="<?=$row['url']?>" target="_blank" title="<?=$row['webname']?>"><?=$row['webname']?></a></li>
	<?php }?>
	</ul>
</div>  
<div class="yqlj" style="margin-top:5px;"> 
	<div class="yqljtitle">合作伙伴:</div>
	<div class="yqljlist">
	<ul>
	<?php while ($row = mysql_fetch_array($rs_hzhb)) {?>
		<li><a href="<?=$row['url']?>" target="_blank" title="<?=$row['webname']?>"><img src="upload/<?=$row['pic']?>" width="95" height="33" border="0"></a></li>
	<?php }?>
	</ul>
	</div>
</div> 
 
<div class="clear"></div>
<div id="footer">
	<div class="renzheng"><img src="<?php echo $this->baseUrl('images/fot_1.jpg');?>" /><img src="<?php echo $this->baseUrl('images/fot_2.jpg');?>" /><img src="<?php echo $this->baseUrl('images/taoke.gif');?>" /><img src="<?php echo $this->baseUrl('images/fot_3.jpg');?>" /><img src="<?php echo $this->baseUrl('images/fot_4.jpg');?>" />
	</div>
	
	<div class="renzheng"><img src="<?php echo $this->baseUrl('images/buliang.gif');?>" /><img src="<?php echo $this->baseUrl('images/bottom.gif');?>" /><img src="<?php echo $this->baseUrl('images/110.jpg');?>" /><img src="<?php echo $this->baseUrl('images/315online.gif');?>" /></div>
	
	<div class="tj" style="font-size:10px">
	  <!--版权开始-->Copyright ©2008-2012&nbsp;&nbsp;<a href="http://<?php echo URL;?>"><?php echo WEBTITLE;?></a>&nbsp; 版权所有<a href="http://soft.duoduo123.com"><span style="color:#006600"></span></a>&nbsp;&nbsp;&nbsp;<a href="http://www.miibeian.gov.cn"><?php echo ICP;?></a>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo TONGJI;?><!--end--><br /><br />
	<div style=" color:#999999">Power By <a href="http://soft.duoduo123.com" style="font-size:10px"><span style="color:#FF6600">Duo</span><span style="color:#006600">duo </span><span style="color:#FF6600">v7.4</span></a></div>
	  <br /></div>
	</div>
</div>

</body></html>